<template>
  <div class="dashboard">
    <h1>数据看板</h1>
    
    <div class="stats-grid">
      <div class="stat-card">
        <div class="stat-value">1,234</div>
        <div class="stat-label">总消息数</div>
      </div>
      
      <div class="stat-card">
        <div class="stat-value">56</div>
        <div class="stat-label">活跃用户</div>
      </div>
      
      <div class="stat-card">
        <div class="stat-value">89</div>
        <div class="stat-label">文件数量</div>
      </div>
      
      <div class="stat-card">
        <div class="stat-value">23</div>
        <div class="stat-label">群组会话</div>
      </div>
    </div>
    
    <div class="charts">
      <div class="chart-card">
        <h3>消息趋势</h3>
        <p>过去7天消息统计图表</p>
      </div>
      
      <div class="chart-card">
        <h3>用户活跃度</h3>
        <p>用户活跃度分析</p>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
// Dashboard logic
</script>

<style scoped>
.dashboard {
  padding: 20px;
}

h1 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 10px;
}

.stat-label {
  color: #7f8c8d;
  font-size: 0.9rem;
}

.charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.chart-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-height: 300px;
}

.chart-card h3 {
  color: #2c3e50;
  margin-bottom: 15px;
}

.chart-card p {
  color: #95a5a6;
}
</style>
